  <div class="dialog" [formGroup]="formGroup"> 
    <div class="header">
      风场位置
    </div>
    <div class="body">
      <div class="form-group">
        <label class="form-label">X轴</label>
        <div class="form-input">
          <input placeholder="输入值" id="posx" name="posx" type="number" min="-10" max="110" autocomplete="off" formControlName="posx">
        </div>
        <div *ngIf="formErrors.posx" class="form-error">
          {{ formErrors.posx }}
        </div>
      </div>
      <div class="form-group">
        <label class="form-label">Y轴</label>
        <div class="form-input">
          <input placeholder="输入值" id="posy" name="posy" type="number" min="-10" max="110" autocomplete="off" formControlName="posy">
        </div>
        <div *ngIf="formErrors.posy" class="form-error">
          {{ formErrors.posy }}
        </div>
      </div>
      <div *ngIf="error" class="form-error">
        {{ error }}
      </div>
    </div>
    <div class="footer">
      <button class="btn btn-primary" [disabled]="!formGroup.valid" (click)="ok()">保存</button>
      <button class="btn btn-default" (click)="no()">取消</button>     
    </div>
</div>
